package cn.kgc.tangcco.tcbd1011.no13.user.action;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.kgc.tangcco.tcbd1011.no13.base.action.BaseServlet;
@WebServlet(name="ToMainServlet",urlPatterns="/toMain.action")
public class ToMainServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;
	//如果方法名是right就跳转到right页面
	public String right(HttpServletRequest request, HttpServletResponse response) {
		String forward = "main/right";
		return forward;
	}
	//如果方法名是left就跳转到left页面
	public String left(HttpServletRequest request, HttpServletResponse response) {
		String forward = "main/left";
		return forward;
	}
	//如果方法名是top就跳转到top页面
	public String top(HttpServletRequest request, HttpServletResponse response) {
		String forward = "main/top";
		return forward;
	}
	//如果方法名是bottom就跳转到bottom页面
	public String bottom(HttpServletRequest request, HttpServletResponse response) {
		String forward = "main/bottom";
		return forward;
	}
}
